<?php
namespace api\controllers;
use common\models\ChItems;
use Yii;
use yii\data\ActiveDataProvider;
use yii\rest\ActiveController;

/**
 * User controller
 */
class ItemController extends ActiveController
{
    public $modelClass = 'api\models\ChItems';
    public function actionIndex()
    {
        return new ActiveDataProvider([
            'query' => ChItems::find(),
        ]);
    }
}
